package com.soft.javase.day02.practice.game;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/16
 */
// 装备类
class Equip {
    private String name;
    private int level;
    private String color;
    private String kind;
    private int power;
    private int defence;

    public Equip(String name, int level, String color, String kind, int power, int defence) {
        this.name = name;
        this.level = level;
        this.color = color;
        this.kind = kind;
        this.power = power;
        this.defence = defence;
    }

    // 显示装备信息
    public void show() {
        System.out.println("装备信息:");
        System.out.println("名称: " + name + "\t" +
                "等级: " + level + "\t" +
                "颜色: " + color + "\t" +
                "类别: " + kind + "\t" +
                "攻击力: " + power + "\t" +
                "防御力: " + defence);
    }

    public int getPower() {
        return power;
    }

    public int getDefence() {
        return defence;
    }
}
